home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Fonts / ScriptID.h < prev   
Text File  |  2000-06-23  |  531b  |  33 lines

  1. // ScriptID.h
  2.  
  3. #ifndef ScriptID_h
  4. #define ScriptID_h
  5.  
  6. #ifndef Integers_h
  7. #include "Integers.h"
  8. #endif
  9.  
  10. #include <Script.h>
  11.  
  12. class ScriptID
  13.   {
  14.     private:
  15.         ScriptCode id;
  16.             
  17.     public:
  18.         explicit ScriptID( ScriptCode value )
  19.           : id( value )
  20.           {}
  21.     
  22.         static ScriptID System();
  23.         
  24.         static ScriptID Roman()                        { return ScriptID( smRoman ); }
  25.         
  26.         ScriptCode ID() const                        { return id; }
  27.         
  28.         bool operator==( ScriptID s ) const        { return id == s.id; }
  29.         bool operator!=( ScriptID s ) const        { return id != s.id; }
  30.   };
  31.  
  32. #endif
  33.